package com.bsoft.gol.hcs.visitrecord.entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 门诊、住院记录诊断his
 * Created by ChenJij on 2020/9/4.
 */

@XmlRootElement(name = "DiagList")
public class VrVisitDiagnosisVo implements Serializable {

    private String diagnoseId;
    private String diagnosisServiceType;
    private String diagnosisType;
    private String mainDiagnosisMark;
    private String diseasesCode;
    private String diseasesName;
    private String diagnosisTime;

    @XmlElement(name = "DiagnoseId")
    public String getDiagnoseId() {
        return diagnoseId;
    }

    public void setDiagnoseId(String diagnoseId) {
        this.diagnoseId = diagnoseId;
    }

    @XmlElement(name = "DiagnosisServiceType")
    public String getDiagnosisServiceType() {
        return diagnosisServiceType;
    }

    public void setDiagnosisServiceType(String diagnosisServiceType) {
        this.diagnosisServiceType = diagnosisServiceType;
    }

    @XmlElement(name = "DiagnosisType")
    public String getDiagnosisType() {
        return diagnosisType;
    }

    public void setDiagnosisType(String diagnosisType) {
        this.diagnosisType = diagnosisType;
    }


    @XmlElement(name = "MainDiagnosisMark")
    public String getMainDiagnosisMark() {
        return mainDiagnosisMark;
    }

    public void setMainDiagnosisMark(String mainDiagnosisMark) {
        this.mainDiagnosisMark = mainDiagnosisMark;
    }

    @XmlElement(name = "DiagnoseCode")
    public String getDiseasesCode() {
        return diseasesCode;
    }

    public void setDiseasesCode(String diseasesCode) {
        this.diseasesCode = diseasesCode;
    }

    @XmlElement(name = "DiagnoseName")
    public String getDiseasesName() {
        return diseasesName;
    }

    public void setDiseasesName(String diseasesName) {
        this.diseasesName = diseasesName;
    }



    @XmlElement(name = "DiagnosisTime")
    public String getDiagnosisTime() {
        return diagnosisTime;
    }

    public void setDiagnosisTime(String diagnosisTime) {
        this.diagnosisTime = diagnosisTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof VrVisitDiagnosisVo)) {
            return false;
        }

        VrVisitDiagnosisVo that = (VrVisitDiagnosisVo) o;

        if (diagnosisServiceType != null ? !diagnosisServiceType.equals(that.diagnosisServiceType) : that.diagnosisServiceType != null) {
            return false;
        }
        if (diagnosisType != null ? !diagnosisType.equals(that.diagnosisType) : that.diagnosisType != null) {
            return false;
        }
        if (diagnoseId != null ? !diagnoseId.equals(that.diagnoseId) : that.diagnoseId != null) {
            return false;
        }
        if (mainDiagnosisMark != null ? !mainDiagnosisMark.equals(that.mainDiagnosisMark) : that.mainDiagnosisMark != null) {
            return false;
        }
        if (diseasesCode != null ? !diseasesCode.equals(that.diseasesCode) : that.diseasesCode != null) {
            return false;
        }
        if (diseasesName != null ? !diseasesName.equals(that.diseasesName) : that.diseasesName != null) {
            return false;
        }
        if (diagnosisTime != null ? !diagnosisTime.equals(that.diagnosisTime) : that.diagnosisTime != null) {
            return false;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int result = diagnoseId != null ? diagnoseId.hashCode() : 0;
        result = 31 * result + (diagnosisServiceType != null ? diagnosisServiceType.hashCode() : 0);
        result = 31 * result + (diagnosisType != null ? diagnosisType.hashCode() : 0);
        result = 31 * result + (mainDiagnosisMark != null ? mainDiagnosisMark.hashCode() : 0);
        result = 31 * result + (diseasesCode != null ? diseasesCode.hashCode() : 0);
        result = 31 * result + (diseasesName != null ? diseasesName.hashCode() : 0);
        result = 31 * result + (diagnosisTime != null ? diagnosisTime.hashCode() : 0);
        return result;
    }
}